﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Smart.Admin.Domain.Model.Response.Role
{
    public class GetRoleSelectedMenuResponse
    {
        /// <summary>
        /// 角色编号
        /// </summary>
        public long RoleId { get; set; }

        /// <summary>
        /// 菜单列表
        /// </summary>
        public List<RoleSelectedMenuDto> MenuTreeList { get; set; }

        /// <summary>
        /// 选中菜单集合
        /// </summary>
        public List<long> SelectedMenuId { get; set; }
    }


    public class RoleSelectedMenuDto 
    {
        /// <summary>
        /// 菜单ID
        /// </summary>
        public long MenuId
        {
            get;
            set;
        }


        /// <summary>
        /// 功能点关联菜单ID
        /// </summary>
        public long? ContextMenuId
        {
            get;
            set;
        }


        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName
        {
            get;
            set;
        }

        /// <summary>
        /// 类型
        /// </summary>
        public int MenuType
        {
            get;
            set;
        }

        /// <summary>
        /// 父菜单ID
        /// </summary>
        public long ParentId
        {
            get;
            set;
        }


        /// <summary>
        /// 显示顺序
        /// </summary>
        public int? Sort
        {
            get;
            set;
        }

        /// <summary>
        /// 子菜单
        /// </summary>
        public List<RoleSelectedMenuDto> Children { get; set; }

    }
}
